<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Gets stat information about the file descriptor fd</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.dio-stat" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">dio_stat</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.2.0, PHP 5 &lt; 5.1.0)</p><p class="refpurpose"><span class="refname">dio_stat</span> &mdash; <span class="dc-title">
   Gets stat information about the file descriptor fd
  </span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.dio-stat-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>dio_stat</strong></span>
    ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$fd</code></span>
   ) : <span class="type">array</span></div>

  <p class="para rdfs-comment">
   <span class="function"><strong>dio_stat()</strong></span> returns information about the given file
   descriptor.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.dio-stat-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<code class="parameter">fd</code></dt>

     <dd>

      <p class="para">
       The file descriptor returned by <span class="function"><a href="dio_open.html" class="function">dio_open()</a></span>.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.dio-stat-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns an associative array with the following keys:
   <ul class="itemizedlist">
    <li class="listitem">
     <p class="para">
      &quot;device&quot; - device
     </p>
    </li>
    <li class="listitem">
     <p class="para">
      &quot;inode&quot; - inode
     </p>
    </li>
    <li class="listitem">
     <p class="para">
      &quot;mode&quot; - mode
     </p>
    </li>
    <li class="listitem">
     <p class="para">
      &quot;nlink&quot; - number of hard links
     </p>
    </li>
    <li class="listitem">
     <p class="para">
      &quot;uid&quot; - user id
     </p>
    </li>
    <li class="listitem">
     <p class="para">
      &quot;gid&quot; - group id
     </p>
    </li>
    <li class="listitem">
     <p class="para">
      &quot;device_type&quot; - device type (if inode device)
     </p>
    </li>
    <li class="listitem">
     <p class="para">
      &quot;size&quot; - total size in bytes
     </p>
    </li>
    <li class="listitem">
     <p class="para">
      &quot;blocksize&quot; - blocksize
     </p>
    </li>
    <li class="listitem">
     <p class="para">
      &quot;blocks&quot; - number of blocks allocated
     </p>
    </li>
    <li class="listitem">
     <p class="para">
      &quot;atime&quot; - time of last access
     </p>
    </li>
    <li class="listitem">
     <p class="para">
      &quot;mtime&quot; - time of last modification
     </p>
    </li>
    <li class="listitem">
     <p class="para">
      &quot;ctime&quot; - time of last change
     </p>
    </li>
   </ul>
   On error <span class="function"><strong>dio_stat()</strong></span> returns <strong><code>NULL</code></strong>.
  </p>
 </div>

</div></div></div></body></html>